Problem Note 36800: The SQL procedure generates a Cartesian product when you join a SAS® table and a DBMS table
In SAS® 9.2 Phase I, PROC SQL generates a Cartesian product when you join a SAS table and a database management system (DBMS) table. When this happens, the following note is added to the SAS log:
NOTE: The execution of this query involves performing one or more Cartesian product
joins that can not be optimized.
This problem happens if you include a CALCULATED component in a WHERE clause.
If PROC SQL generates a Cartesian product, one or more of the following issues can occur:
- All rows that are retrieved from DBMS tables are used in the join.
- Join queries run for excessively long periods of time.
- Temporary disk space can be exhausted, resulting in out-of-resource errors.
- A results set can be generated that is much larger than expected.
To fix this problem, you must apply the second maintenance release for SAS 9.2 (TS2M2).
Operating System and Release Information
SAS System | Base SAS | z/OS | 9.2 TS2M0 | 9.2 TS2M2 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS2M0 | 9.2 TS2M2 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS2M0 | 9.2 TS2M2 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS2M0 | 9.2 TS2M2 |
Microsoft Windows XP 64-bit Edition | 9.2 TS2M0 | 9.2 TS2M2 |
Microsoft® Windows® for x64 | 9.2 TS2M0 | 9.2 TS2M2 |
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS2M0 | 9.2 TS2M2 |
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS2M0 | 9.2 TS2M2 |
Microsoft Windows Server 2003 Standard Edition | 9.2 TS2M0 | 9.2 TS2M2 |
Microsoft Windows Server 2008 | 9.2 TS2M0 | 9.2 TS2M2 |
Microsoft Windows XP Professional | 9.2 TS2M0 | 9.2 TS2M2 |
Windows Vista | 9.2 TS2M0 | 9.2 TS2M2 |
64-bit Enabled AIX | 9.2 TS2M0 | 9.2 TS2M2 |
64-bit Enabled HP-UX | 9.2 TS2M0 | 9.2 TS2M2 |
64-bit Enabled Solaris | 9.2 TS2M0 | 9.2 TS2M2 |
HP-UX IPF | 9.2 TS2M0 | 9.2 TS2M2 |
Linux | 9.2 TS2M0 | 9.2 TS2M2 |
Linux for x64 | 9.2 TS2M0 | 9.2 TS2M2 |
OpenVMS on HP Integrity | 9.2 TS2M0 | 9.2 TS2M2 |
Solaris for x64 | 9.2 TS2M0 | 9.2 TS2M2 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2010-04-19 14:58:39 |
Date Created: | 2009-08-10 13:27:44 |